package center.leon.zoomvcsentinel.monkey.service.impl;

import center.leon.zoomvcsentinel.monkey.service.MonkeyServiceApi;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * @author : Leon on XXM Mac
 * @since : create in 2024/9/3 20:36
 */
@Service
public class MonkeyServiceApiImpl implements MonkeyServiceApi {

    @Override
    @SentinelResource(value = "helloWorld")
    public String helloWorld(String name) {
        return "hello world -- " + name;
    }
}
